package com.freesun.shop.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freesun.shop.domin.ProdSolr;

import java.util.List;

public interface SearchService {

    void importAllProd();

    /**
     * wx小程序通过商品标签查询商品
     * @param tagId
     * @param size
     * @return
     */
    List<ProdSolr> serachByTagId(Long tagId, Integer size);

    List<ProdSolr> serachByCatId(Long categoryId);

    /**
     * 全方位的搜索
     * @param page
     * @param prodName
     * @param sort
     * @return
     */
   IPage<ProdSolr> search(Page<ProdSolr> page, String prodName, Integer sort);
}
